<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客列表</title>
</head>
<body>
    <div>
        <a href="insert.html">写博客</a>
    </div>
    <div th:each="blog : ${blogs}">
        <span th:text="${blog.blogId}"></span>
        <span th:text="${blog.title}"></span>
        <span th:text="${blog.content}"></span>
        <span th:text="${blog.postTime}"></span>
        <span th:text="${blog.userId}"></span>
        <a th:href="${'blogDetails.html?blogId=' + blog.blogId}">查看详情</a>
    </div>
</body>
</html>